package com.happy.qademo.websheet.config;


import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;


@Configuration
public class LoginConfig implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new LoginInterceptor())
                .addPathPatterns("/**")
                .excludePathPatterns("/js/**","/css/**","/pdf_viewer.html","/deleteInterface","/deleteModule","/user/loginOut.do","/user/crapDebug/v1/synch.do","/login","/register","/user/login","/user/register","/luckysheet/**","/uploadfile","/downloadfile/**","/uploadfileapi","/error","/zhuanfa/**","/preview/**");
    }
}
